package com.lagou.edu.dao;

import com.lagou.edu.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @ClassName: ResumeResipotry
 * @Auther: Jerry
 * @Date: 2020/7/19 12:14
 * @Desctiption: ResumeResipotry接口
 * @Version: 1.0
 */
public interface ResumeResipotry extends JpaRepository<Resume, Long>, JpaSpecificationExecutor<Resume> {

    @Query("from Resume where username=?1")
    Resume findByUsername(String username) throws Exception;

}
